import { fromJS } from 'immutable'
import { actionTypes } from '../store'
const defaultState= fromJS({
    acticle:{}
});

export default  (state = defaultState,action)=>{
    switch (action.type){
        case actionTypes.GET_ARTICLE:
            return state.set('acticle',fromJS(action.value));
        default :
            return state;
    }
};